import { AppstoreOutlined, AccountBookOutlined } from '@ant-design/icons-vue'
import { Components } from 'ant-design-vue/es/date-picker/generatePicker'

export default [
  {
    path: '/home',
    name: 'home',
    component: () => import('@/views/HomeView.vue'),
    meta: {
      title: '首页',
      icon: AppstoreOutlined
    }
  },
  {
    path: '/about',
    name: 'about',
    component: () => import('@/views/AboutView.vue'),
    meta: {
      title: '关于',
      icon: AccountBookOutlined
    }
  },
  {
    path: '/setting',
    name: 'setting',
    redirect: '/setting/accountView',
    meta: {
      title: '设置',
      icon: AccountBookOutlined
    },
    children: [
      {
        path: '/setting/accountView',
        name: 'settingAccountView',
        component: () => import('@/views/aSetting/accountView.vue'),
        meta: {
          title: '账号列表',
          icon: AccountBookOutlined
        }
      },
      {
        path: '/setting/accessSetting',
        name: 'settingAccessSetting',
        component: () => import('@/views/aSetting/settingView.vue'),
        meta: {
          title: '权限设置',
          icon: AccountBookOutlined
        }
      }
    ]
  },
  {
    path: '/productList',
    name: 'productList',
    redirect: '/productList/stable',
    meta: {
      title: '组件列表',
      icon: AccountBookOutlined
    },
    children: [
      {
        path: '/productList/stable',
        name: 'productListStable',
        component: () => import('@/views/product/stable.vue'),
        meta: {
          title: '滚动加载表格',
          icon: AccountBookOutlined
        }
      },
      {
        path: '/productList/sform',
        name: 'productListSForm',
        component: () => import('@/views/product/sform.vue'),
        meta: {
          title: '联动表单',
          icon: AccountBookOutlined
        }
      }
    ]
  }
]
